<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<%@include file="/common/public.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}/css/main.css">
<link rel="stylesheet" type="text/css" href="${ctx}/css/query.css">
<script type="text/javascript">
window.Action = {};
Action.save = function(){
	jQuery("#questionEdit > form:first").submit();
};
Action.complete = function(){
	window.close();
}
</script>
</head>
<body id="questionEdit">
<e:form name="EditForm" action="/question/page/questionSave.do">
<e:hidden name="id" value="${bean.qid}"/>
<table class="etable">
	<tr>
		<td class="tl">问题名称：</td>
		<td class="tc">
			<e:text name="title" className="input" validate="{required:true,maxlength:128}" value="${bean.title}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
		<td class="tl">问题类型：</td>
		<td class="tc">
			<e:select name="typeId" className="input" validate="{required:true}" value="${bean.typeId}">
				<e:param name="source" value="sql:SELECT [TYPE_ID] VALUE,[TYPE_NAME] TEXT FROM [cip].[dbo].[QTYPE] WHERE STATE = 'A'"/>
				<e:param name="defValue" value="1"/>
			</e:select>
		</td>
	</tr>
	<tr>
		<td class="tl">问题状态：</td>
		<td class="tc">
			<e:select name="statusId" className="input" validate="{required:true,maxlength:32}" value="${bean.statusId}">
				<e:param name="source" value="sql:SELECT [STATUS_ID] VALUE,[STATUS_NAME] TEXT FROM [cip].[dbo].[QSTATUS] WHERE STATE = 'A'"/>
				<e:param name="defValue" value="2"/>
			</e:select>
		</td>
		<td class="tl">紧急程度：</td>
		<td class="tc">
			<e:select name="level" className="input"  validate="{required:true,maxlength:32}"  value="${bean.level}">
				<e:param name="source" value="json:[{text:'非常紧急',value:'2'},{text:'紧急',value:'1'},{text:'正常',value:'0'}]"/>
				<e:param name="defValue" value="0"/>
			</e:select>
		</td>
	</tr>
	<tr>
		<td class="tl">所属系统：</td>
		<td class="tc">
			<e:select name="sysId" className="input" validate="{required:true,maxlength:32}" value="${bean.sysId}">
				<e:param name="source" value="sql:SELECT [SYS_ID] VALUE,[SYS_NAME] TEXT FROM [cip].[dbo].[SYS_INFO] WHERE STATE = 'A'"/>
				<e:param name="defValue" value=""/>
			</e:select>
		</td>
		<td class="tl">处理人：</td>
		<td class="tc">
			<e:select name="staffId" className="input" validate="{required:true,maxlength:32}" value="${bean.staffId}">
				<e:param name="source" value="sql:SELECT [STAFF_ID] VALUE,[STAFF_NAME] TEXT FROM [cip].[dbo].[STAFF_INFO] WHERE STATE = 'A'"/>
				<e:param name="defValue" value=""/>
			</e:select>
		</td>
	</tr>
	<tr>
		<td class="tl">提问人：</td>
		<td class="tc">
			<e:text name="user" className="input" validate="{required:false}" value="${bean.user}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
		<td class="tl">所在区域：</td>
		<td class="tc">
			<e:select name="region" className="input" validate="{required:true}" value="${bean.region}">
				<e:param name="source" value="sql: SELECT [BH] VALUE,[NAME] TEXT FROM [cip].[dbo].[QREGION] WHERE STATE = 'A'"/>
				<e:param name="defValue" value="5101"/>
			</e:select>
		</td>

	</tr>
	<tr>
		<td class="tl">所在单位：</td>
		<td class="tc">
			<e:text name="unit" className="input" validate="{required:false}" value="${bean.unit}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
		<td class="tl">邮箱：</td>
		<td class="tc">
			<e:text name="email" className="input" validate="{required:false,maxlength:128}" value="${bean.email}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
	</tr>
	<tr>
		<td class="tl">QQ：</td>
		<td class="tc">
			<e:text name="qq" className="input" validate="{required:false,maxlength:128}" value="${bean.qq}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
		<td class="tl">联系电话：</td>
		<td class="tc">
			<e:text name="tel" className="input" validate="{required:false,maxlength:128}" value="${bean.tel}">
				<e:param name="defValue" value=""/>
			</e:text>
		</td>
	</tr>
	<tr>
		<td class="tl">问题说明：</td>
		<td class="tc" colspan="4"><e:textarea name="desc" style="width:100%; height:160px" validate="{required:true}" value="${bean.desc}"/></td>
	</tr>
	<tr>
		<td align="center" colspan="4" height="30">
		<input id="SaveButton" type="button" class="btn_orange_b2" value="保 存" onClick="Action.save()"/>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input id="SaveButton" type="button" class="btn_blue_b2" value="关 闭" onClick="window.close()"/>
		</td>
	</tr>
</table>
</e:form>
</body>
</html>